import sys
import os

thisDir = os.path.split(os.path.realpath(__file__))[0]
sys.path.append(os.path.join(thisDir, "..", "common"))
sys.path.append(os.path.join(thisDir, "..", "server", "ps"))

from SessionManager import SessionManager

import EJOConfig
import ui.Start
import handler.Start

import logging
logger = logging.getLogger(__name__)

def Start():
    logger.debug("[test] Start")    
    print("[test] Start")    

    handler.Start.Start()
    ui.Start.Start()

    logger.debug("[test] End")
    print("[test] End")

if __name__ == "__main__":
    logging.basicConfig(filename = EJOConfig.TEST_LOG_PATH, level = EJOConfig.TEST_LOG_LEVEL)
    SessionManager(False)
    Start()
